package code_smells

import (
    `io`
    `database/sql`
)

// 霰弹枪外科医生

// Renderer will render a person to the supplied writer 渲染器将渲染一个人到提供的作家
type Renderer struct {
}

func (r Renderer) render(name, phone string, output io.Writer) {
    // output the person
}

// Validator will validate the supplied person has all the required fields 验证器将验证所提供的人是否具有所有必需字段
type Validator struct{}

func (v Validator) valiedate(name, phone string) error {
    // validate the person
    return nil

}

// Saver will save the supplied person to the DB

type Saver struct {
}

func (self *Saver) Save(db *sql.DB, name, phone string) {
    // save the person to db

}
